package com.ruoyi.common.enums;

public enum RspEnmu {

    // 系统异常
//    OK(000000, "成功"),
    OK(000000, "Successful"),
    //    SYSTEM_ERR(100001, "系统异常，请稍候重试"),
    SYSTEM_ERR(100001, "Bad connection.Please try again."),

    RISK_SERVICE_EXCEPTION(100101, "RiskServiceException."),
    //    REQUEST_ERR(100002, "网络异常，请稍候重试"),
    REQUEST_ERR(100002, "Internet exception, Please try again."),
    //    SYSTEM_BUSY(100003, "系统繁忙，请稍候重试"),
    SYSTEM_BUSY(100003, "System is busy.Please try again."),
    // ip地址错误，请更换IP地址。
//    NOT_WHITE_IP(100004, "请求地址不在白名单内"),
    NOT_WHITE_IP(100004, "IP address error, please change the IP address."),
    //    SIGN_ERR(100005, "签名错误"),
    SIGN_ERR(100005, "System Signature error."),
    //    ILLEGAL_REQ_ERR(100006, "非法请求"),
//    SYSTEM_EXCEPTION(100007, "系统异常，请稍后再试。"),
    SYSTEM_EXCEPTION(100007, "System abnormal, please try again later."),
    //    SYSTEM_SYSDATA_EXCEPTION(100008, "系统数据异常"),
    SYSTEM_SYSDATA_EXCEPTION(100008, "System data abnormal, please try again later."),
    // SIGN_VALID_FAILURE(100009, "验签失败"),
    SIGN_VALID_FAILURE(100009, "Validation failed. Please try again later."),
    //    API_REQ_ERR(100010, "接口请求异常"),
    API_REQ_ERR(100010, "Bad connection.Please try again."),
    SYSTEM_MAINTENANCE(100011, "系统维护中"),
    DUPLICATE_SUBMISSION(100012, "Please do not resubmit"),
    LOGIN_DEVICE_TOKEN_ERROR(100013, "Login status has expired or your account is already logged in on another device, please verify if you are operating it yourself."),
    DEFERRED_PRODUCT_IDISNULL(1000000,"Deferred product parameter is empty"),
    INVALID_EXPIRATION_TIME(1000001,"Please modify the expiration time of the extended product"),
    TIME_ERR(1000002,"Incorrect format of effective time"),

    DATA_ALREADY_EXISTS(100014, "产品已存在，请修改产品等级或期数."),
    PRODUCT_CODE_EXISTS(100015, "产品已存在，请修改产品代码."),

    // 网络忙
    NETWORK_BUSY(120000, "Network is busy.Please try again."),
    // 外部接口异常 code=120000与是网络忙一致 是为了避免影响实名.code 和 msg请勿改动
    EXT_API_ERR(120000, "external api error."),

    // 网络错误
    NETWORK_ERROR(120001, "network error."),
    // 网络错误
    VERIFY_TRANSFER_NETWORK_ERROR(120001, "verify transfer network error."),
    // 网络异常
    NETWORK_EXCEPTION(120002, "network exception."),

    //请求超时
    CONNET_TIMED_OUT(120003, "connect timed out"),


    DAILY_CUST_BATCH_TIME_ERROR(120101, "The time for the daily cut batch is not yesterday"),

    // 校验异常
//    PARAM_CANNOT_NULL(200001, "请求参数不能为空"),
//    PARAM_LENGTH_ERR(200002, "请求参数长度不正确"),
//    ILLEGAL_ARGUMENT(200003, "参数非法"),
//    PARAM_ERR(200004, "请求参数不正确"),
//    PARAM_FILE_NULL(200005, "请求参数文件不能为空"),

    // ILLEGAL_ARGUMENT(200001, "参数格式不正确"),
    ILLEGAL_ARGUMENT(200001, "Data input error, please reenter."),
    //    ILLEGAL_REQ_ERR(200002, "非法请求"),
    ILLEGAL_REQ_ERR(200002, "The system could not accept your request. Please try again later."),
    //    PARAM_CANNOT_NULL(200003, "请求参数缺失或不能为空"),
    PARAM_CANNOT_NULL(200003, "The system could not accept your request. Please try again later."),
    //    USER_NOT_EXIST(200004, "用户不存在"),
    USER_NOT_EXIST(200004, "You are not yet registered."),
    //    USER_STATUS_ERR(200005, "用户状态不可用"),
    USER_STATUS_ERR(200005, "Account status is unavailable."),
    //    USER_PASSWORD_ERR(200006, "密码错误"),
    USER_PASSWORD_ERR(200006, "Please enter the correct phone number and password."),
    // TP错误
    T_PASSWORD_ERR(2000061, "Please enter a correct PIN."),
    //    USER_EXIST(200007, "用户已存在"),
    USER_EXIST(200007, "This phone number has already been taken."),
    //    SMS_CODE_EXPRIRE(200008, "验证码已过期，请重新获取"),
    SMS_CODE_EXPRIRE(200008, "Verification code is expired, Please request again."),
    //    USER_LOGIN_OUT(200009, "登录状态已失效"),
    USER_LOGIN_OUT(200009, "Login status has expired. Please log in again."),
    //    VERIFY_CODE_SEND_FAILD(200010, "验证码发送失败"),
    VERIFY_CODE_SEND_FAILD(200010, "Verification code send out failed, Please request again."),
    NOT_VERIFY_REAL_NAME(200011, "Please verify the real name authentication first."),
    BVN_VERIFY_REJECT(200012, "Please check the BVN Account."),
    NOT_SET_TRADE_PASSWORD(200013, "Please set trade password first."),
    //    ILLEGAL_USER_REQ_ERR(200014, "非法用户请求"),
    ILLEGAL_USER_REQ_ERR(200014, "The system could not accept your request. Please re-login or try again later."),
    //    CUSTOMER_IS_NOT_EXISTS(200015, "客户不存在"),
    CUSTOMER_IS_NOT_EXISTS(200015, "Incorrect message, please try again later."),
    SMS_SEND_FAILD(200016, "Sms send out failed, Please request again."),
    //邀请码无效
    INVITATION_CODE_INVALID(200050, "The invitation code does not exist. Please fill in the invitation code again."),
    //邀请码无效 超过三次
    INVITATION_CODE_INVALID_MORE_THREE(200051, "If the invitation code does not exist, you can register without filling in the invitation code."),
    //当日 绑定 account 超次数
    BINDING_TIMES_EXCEEDED(200102, "The number of attempts exceeded the limit. Please try again tomorrow"),
    //重复绑定account
    REPEAT_BINDING(200103, "The bank account has been bound"),
    //account name 不匹配
    ACCOUNT_NAME_NOT_FOUND(200104, "Account name is not found"),

    //邮件类型不存在
    EMAIL_TYPE_NOEXIST(200105, "邮件类型不存在"),
    // 邮件发送失败
    EMAil_SEND_FAILED(200106, "Email send is failed"),
    // 更新联系人参数错误
    UPDATE_RELATION_PARAM(200107, "Update relation param is failed"),
    // 用户反馈信息保存失败
    FEED_BACK_EXITS_FAIL(200108, "Failed to save user feedback information"),


    // 业务异常
//    NO_RECORD(300001, "查询无记录"),
    NO_RECORD(300001, "No recorded information"),
    NEW_BIZ_PWD_NOT_MATCH(300002, "新商盟验证失败，请检查帐号密码"),
    //    USER_IDENTIFY_FAIL(300003, "用户身份校验失败"),
    USER_IDENTIFY_FAIL(300003, "User authentication failed"),
    //    SMS_SEND_FAIL(300004, "短信发送失败"),
    SMS_SEND_FAIL(300004, "SMS failed to send"),

    //    GET_CODE_REPEAT(300005, "请重新获取验证码"),
    GET_CODE_REPEAT(300005, "Please request verification code."),
    //    SMS_CODE_ERR(300006, "验证码错误，请重新输入"),
    SMS_CODE_ERR(300006, "SMS verification code input error, please reenter."),
    //    SMS_CODE_COUNT_LIMIT(300007, "验证码获取次数超过当日限制"),
    SMS_CODE_COUNT_LIMIT(300007, "You exceeded limit of attempts.Please try again tomorrow."),
    //    DUPLICATE_APPLY(300008, "您已有进件在途，请勿重复申请"),
    DUPLICATE_APPLY(300008, "You have submitted your real-name authentication information. Please do not submit it again."),
    FILE_UPLOAD_FAIL(300011, "图片上传错误"),
    WXMP_MOBILE_IS_BINDED(300020, "很抱歉，手机号已被占用，请更换手机号申请"),
    NEW_BIZ_VERIFY_NOT_EXISTS(300021, "您好，请验证商户身份后申请"),
    //    SMS_CODE_SENT_IN_60_SECOND(300023, "120秒内请求过验证码"),
    SMS_CODE_SENT_IN_60_SECOND(300023, "You have got verification code within 120s."),
    BVN_CHECK_FAILED_API_RES_NULL(300024, "BVN check failed, No record."),
    BVN_CHECK_FAILED(300025, "BVN check failed."),
    //    EXTERNAL_API_RSP_NULL(300026, "未获取到数据"),
    EXTERNAL_API_RSP_NULL(300026, "System data not obtained"),
    //    EXTERNAL_API_RSP_FALSE(300027, "验证不通过"),
    EXTERNAL_API_RSP_FALSE(300027, "Verification failed"),
    //    BANK_LIST_RSP_NULL(300028, "未获取到银行列表"),
    BANK_LIST_RSP_NULL(300028, "Bank information not obtained"),
    TRANSACTION_SERIAL_NO_NOT_EXISTS(300029, "Transaction serial no is not exists"),
    //Reference already exists on a transfer
    REFERENCE_ALREADY_EXISTS_ON_TRANSFER(3000291, "Reference already exists on a transfer"),
    //Account number is invalid
    ACCOUNT_NUMBER_IS_INVALID(3001201, "Account number is invalid"),
    REPAYMENT_ORDER_IN_TRANSIT(300030, "You have a cash repayment order in transit, Please try again later."),
    REAL_NAME_AUTH_USED(300031, "BVN already exists, please enter your own BVN"),
    REAL_NAME_BVN_USED(300031, "The bvn has already been used."),
    REAL_NAME_USER_USED(300031, "User has real name."),
    REAL_NAME_BVN_NOT_EXIST(300032, "bvn does not exist in the real-name"),
    ACCOUNT_NUMBER_INSUFFICIENT_LENGTH(300032, "The account number length must be at least 10 characters long"),
    NEED_REALNAME_VERIFY_CODE(300033, "Please request the verification code for real-name authentication first"),
    APP_VERSION_DONOT_SUPPORT(300034, "The current App version is no longer supported, please go to Google Play to download the latest version, thank you!"),
    APP_VERSION_TO_LOW(300035, "The current App version is no longer supported, please go to Google Play to download the latest version, thank you!"),
    //    DUPLICATE_APPLY_ERROR(300034, "请勿重复进件"),
    DUPLICATE_APPLY_ERROR(300034, "You have submitted your real-name authentication information. Please do not submit it again. "),
    //    EXT_REQ_ERR(300036, "接口返回为空"),
    EXT_REQ_ERR(300036, "Data abnormal, please resubmit data. "),
    //    SMSCODE_IS_EMPTY(300042, "验证码不能为空"),
    SMSCODE_IS_EMPTY(300042, "Please enter SMS verification code. "),
    //    USERID_IS_EMPTY(300043, "客户id为空"),
    USERID_IS_EMPTY(300043, "The customer ID is empty"),
    //    CUST_IS_NULL_NEED_REALNAME_AUTH(300044, "客户信息为空，请先实名认证"),
    CUST_IS_NULL_NEED_REALNAME_AUTH(300044, "Please submit your real name authentication information first. "),
    //    PRODUCT_NOT_EXISTS(300045, "贷款产品不存在"),
    PRODUCT_NOT_EXISTS(300045, "The loan product has been removed from the shelves. Please choose another loan product. "),
    //    LOAN_PURPOSE_NULL(300046, "贷款用途不能为空"),
    LOAN_PURPOSE_NULL(300046, "Please fill in the purpose of loan. "),
    //    NOT_MATCH_PASS_APPLY(300047, "请先授信通过后再操作"),
    NOT_MATCH_PASS_APPLY(300047, "Please submit your real name authentication information first. "),
    // 暂不支持此银行
    NOT_SUPPORT_BANK(300048, "Current bank is not supported. "),

    //whatsApp 发送失败
    WHATSAPP_SEND_FAIL(300049, "WhatsApp failed to send"),
    //voice  发送失败
    VOICE_SEND_FAIL(300050, "Voice failed to send"),
    //whatsApp  校验失败
    WHATSAPP_CHECK_FAIL(300051, "WhatsApp authentication failed"),

    //短信发送信息获取失败
    SMS_SEND_INFO_GET_FAILED(300052, "Sms send info get failed"),

    REAL_NAME_NOTFOUND(300053, "You have not verified your identity yet. Please return to the home page or restart LinkCredit"),

    REAL_NAME_BVN_FAIL(310011, "Please enter the correct BVN"),

    //Operation is too frequent 操作过于频繁
    Operation_Is_Too_Frequent(300054, "Operation is too frequent"),

    PRODUCT_DEFERRED_IS_DOWN(300055,"The loan extension has expired and is temporarily unavailable"),
    PRODUCT_DEFERRED_IS_ALREDADY_EXXISTS(300056,"Your loan extension order is being processed, please be patient"),
    REPAYMENT_WALLET_NOT_ENOUGH(300057,"Wallet balance insufficient\n" +
            "Your wallet does not have enough balance to pay, you need to transfer funds to your wallet before paying, or you can choose a combination of card and wallet to pay"),

    PRODUCT_DEFERRED_TODAY_IS_HAS_SUCCESS(300058,"You have extended your loan successfully If you want to continue to extend it, please try again tomorrow"),
    CUSTOMER_DELETE_ACCOUNT(300059,"Customer has deleted account"),


    /**
     * 实名失败码 310000
     */
    REAL_NAME_CHECK_FAILED(310000, "Real name check failed."),
    REAL_NAME_CHECK_FAILED_BIRTH_PHONE(310000, "Birthday or mobile phone number is empty, real name failed!"),
    GPS_CHECK_FAILED(310000, "Gps check Failed."),
    REAL_NAME_CHECK_FAILED_OVER_AGE(310000, "Real name check failed, Over Age."),
    REAL_NAME_CHECK_FAILED_BY_OKRA(310000, "Real name check failed, By Okra-Verification."),
    REAL_NAME_CHECK_FAILED_BY_OKRA_BACK(310000, "Real name check failed, By Okra-Verification-back."),
    REAL_NAME_ALREADY_EXISTS(310000, "Real name information already exists"),
    /**
     * 实名系统异常码 320000
     */
    EXT_API_EXCEPTION_GPS(320000, "Network abnormal, By Gps."),
    EXT_API_EXCEPTION_OKRA(320000, "Network abnormal, By Okra Account."),
    EXT_API_EXCEPTION_CRS_BVN2(320000, "Network abnormal, By Crs Find Bvn2."),
    EXT_API_EXCEPTION_OKRA_BVN(320000, "Network abnormal, By Okra Bvn."),
    EXT_API_EXCEPTION_OKRA_ONE_PIPE(320000, "Network abnormal, By OnePipe."),
    EXT_API_EXCEPTION_PAY_STACK_BVN_MATCH(320000, "Network abnormal, By payStack Bvn Match."),
    EXT_API_EXCEPTION(320000, "Network abnormal, please try again later."),
    //未查得
    CYC_INFORMATION_NOT_FOUND(310001, "Information not found"),


    //    BIND_COUNT_LIMIT_OR_PENDING(300049, "绑卡数量超过限制或有绑卡流程在途"),
    BIND_COUNT_LIMIT_OR_PENDING(300049, "The number of cards exceeds the limit or the card binding process is in transit. "),
    REAL_NAME_CHECK_FAILED_BY_NAME(300050, "Real name check failed (By name). "),
    REAL_NAME_CHECK_FAILED_BY_BIRTHDAY(300051, "Real name check failed (by birthday). "),
    REAL_NAME_CHECK_FAILED_BY_PHONE(300052, "Real name check failed (by phone number). "),
    REAL_NAME_CHECK_FAILED_BY_BVN(300053, "The real-name information bound to BVN has been used. "),
    //提交频繁，60分钟后再试
    SUBMIT_TOO_FREQUENTLY_60MINUTES(300054, "You are submitting too frequently. Please try again 60 minutes later "),
    //提交频繁，6小时后再试
    SUBMIT_TOO_FREQUENTLY_6HOUR(300056, "You are submitting too frequently. Please try again 6 hours later "),
    //提交频繁,第二天再试
    SUBMIT_TOO_FREQUENTLY_TOMORROW(300057, "Your operation is too frequent. Please try again tomorrow "),

    WITHHOLD_CHANGE_CARD(300058, "The card fails to be detained. Replace the card and try again. "),
    REAL_NAME_CHECK_FAILED_JUMP_PAGE(300059, "jump page"),
    REAL_NAME_CHECK_FAILED_BY_BVN_2(300060, "Real name check failed (by bvn). "),
    REAL_NAME_CHECK_FAILED_AGAIN(300061, "Verification phone number failed."),

    // 文件异常
    FILE_PROCESS_ERR(400001, "文件处理异常，请联系管理员"),
    FILE_NOT_FOUND(400002, "文件不存在"),
    FILE_ZIP_ERR(400003, "文件压缩错误，请联系管理员"),
    FILENAME_LENGTH_LIMIT_EXCEEDED(400004, "文件名长度超过限制"),
    FILE_UPLOAD_ERR(400005, "文件上传出错"),
    ILLEGAL_PICTURE_EXTENSION(400006, "无效图片格式"),
    ILLEGAL_FILE_EXTENSION(400007, "无效文件格式"),
    FILE_UNZIP_NULL(400008, "文件内容为空"),
    FILE_SIZE_LIMIT(400009, "文件大小超过限制"),
    UNZIP_FILE_ERR(400010, "文件解压出错"),
    PICTURE_IS_NULL(400011, "图片不能为空"),
    FILE_TRANS_ERR(400012, "文件传输异常"),
    FILE_CREATE_ERR(400012, "文件传输异常"),
    FILE_DOWNLOAD_ERR(400012, "文件传输异常"),


    //    LOAN_OFFSET_EXCEPTION(500001, "借据冲账异常"),
    LOAN_OFFSET_EXCEPTION(500001, "IOU charging abnormal"),
    // OCR 识别异常
    OCR_PROPER_TEMPLATE_ERR(500002, "请根据示例图上传正确的照片"),
    ILLEGAL_IMG_TYPE_OCR(500003, "不支持识别的图片类型"),
    OCR_RST_NULL(500004, "未识别到有效信息，请按要求上传"),
    OCR_IDCARD_ERR(500005, "身份证号码识别错误，请按要求上传"),
    OCR_IDCARD_NAME_ERR(500006, "身份证姓名识别错误，请按要求上传"),
    OCR_CURENT_ORDER_ERR(500007, "请根据示例上传本月订单照片"),
    OCR_LAST_ORDER_ERR(500008, "请根据示例上传上月订单照片"),
    OCR_HISTORY_ORDER_ERR(500009, "请根据示例上传历史订单照片"),
    OCR_MERCHANT_INFO_ERR(500010, "未识别到有效信息，请根据示例上传商户信息照片"),
    OCR_ANALYTIC_RST_ERR(500011, "图片识别出错，请重新上传"),
    OCR_CORRECT_RATE_LOWER(500012, "图片内容不清晰，请重新上传"),
    OCR_CUST_IMG_ERR(500013, "未识别到客户有效信息，请按要求上传"),
    OCR_IMG_ERR(500014, "图片错误/不全/不清晰，请重新上传图片！"),

    // 风控规则 未授信
    UNCREDITED(600000, "loanRulePremiseUncredited"),
    DO_NOT_MEET_RISK_CONTROL_RULES(600001, "不符合风控白名单规则"),
    APPLY_CUSTNAME_NOT_EQUALS_SPIDE_DIRECTORNAME(600002, "申请人姓名与爬虫负责人不一致"),
    SPIDE_CUSTNAME_NOT_EQUALS_BUSINESS_SHOPNAME(600003, "爬虫客户名称与工商返回商铺名称（或数仓商铺名称）不一致"),
    SPIDE_CUSTNAME_BUSINESS_SHOPNAME_VERIFY_ERROR(600005, "校验客户名称与商铺名称异常"),
    RISK_AGE_BETWEEN_23_55(600006, "年龄不符合准入条件，要求 23-55"),

    //    TD_ASE_ENCRYPY_ERROR(300051, "同盾ASE加密异常"),
    TD_ASE_ENCRYPY_ERROR(600007, "The data is abnormal, please resubmit the data."),
    //    TD_ASE_DNCRYPY_ERROR(300052, "同盾ASE解密异常"),
    TD_ASE_DNCRYPY_ERROR(600008, "The data is abnormal, please resubmit the data."),
    //    TD_CALL_ERROR(300053, "规则调用异常"),
    TD_CALL_ERROR(600009, "The data is abnormal, please resubmit the data."),

    NOT_QUALIFIED_APPLICATION(600010, "Sorry, you are not qualified for the application for the time being. Please apply again a month later."),
    //已申请成功
    SUCCESS_APPLICATION(600011, "Your application has been successful, please try restarting the APP."),
    //已提交申请
    SUBMITTED_APPLICATION(600012, "You have submitted your application, please wait patiently for the result."),


    // 钱包 wallet
    BALANCE_LOCK_CANNOT_WITHDRAW(610000, "The balance is locked, sorry that you cannot withdraw cash temporarily, please contact customer service"),
    BONUS_LOCK_CANNOT_WITHDRAW(610001, "The bonus is locked, sorry that you cannot withdraw cash temporarily, please contact customer service"),
    WALLET_WITHDRAW_ZERO(610002, "Please enter an amount greater than 0"),
    WALLET_WITHDRAW_CANNOT_LOWER_MIN_BALANCE(610003, "Not less than the minimum withdrawal balance"),
    WALLET_WITHDRAW_CANNOT_LOWER_MIN_BONUS(610004, "Not less than the minimum withdrawal bonus"),
    WALLET_WITHDRAW_INSUFFICIENT_BALANCE(610005, "Insufficient balance"),
    WALLET_WITHDRAW_INSUFFICIENT_BONUS(610006, "Insufficient bonus"),
    WALLET_WITHDRAW_TYPE_CANNOT_SUPPORT(610007, "Unsupported withdrawal type"),
    WALLET_WITHDRAW_ERROR(610008, "Withdrawal operation network is busy, please try again later."),
    WALLET_WITHDRAW_IS_PROCESSING(610009, "Your withdrawal request is being processed, please check the account status later."),

    WALLET_WITHDRAW_IOU_OVERDUE(610010, "Please repay in time. Otherwise, it will affect your credit score. You can click wallet repayment when repaying."),
    WALLET_WITHDRAW_IOU_ABOUT_TO_EXPIRE(610011, "Your loan repayment date is approaching; please repay first. You can click wallet repayment when repaying."),

    // 绑卡
    PRE_BIND_BANK_ERR(700001, "当前产品不支持绑卡"),
    //    BIND_BANK_NO_FOUND(700002, "绑卡不存在"),
    BIND_BANK_NO_FOUND(700002, "Bank card information error"),
    PRODUCT_NO_CONFIG(700003, "产品未配置"),
    REPAY_TYEP_NO_CONFIG(700004, "还款方式未配置"),
    LOAN_APPLY_IS_OVER(700005, "您的贷款申请已结束，请从新申请"),
    LOAN_APPLY_PROCESS_ERROR(700006, "申请流程错误，请先填写基本信息"),
    CREDIT_APPLY_IS_EMPTY(700007, "授信额度为空"),
    TOBACCO_GRADE_IS_EMPTY(700008, "烟草档位为空"),
    ORDER_SUM_TOTAL_IS_EMPTY(700009, "年订单金额为空"),
    PAY_CHANEEL_NO_CONFIG(700010, "支付渠道未配置"),
    CONTACT_NO_CONFIG(700011, "签章渠道未配置"),
    PAY_TRANS_IS_EMPTY(700012, "支付交易流水不存在"),
    CREDIT_EXP_IS_EMPTY(700013, "授信有效期为空"),
    PAY_IS_NO_SUPPORT(700014, "不支持的支付类型"),
    OPEN_OR_USER_IS_EMPTY(700015, "openid和客户编号不能同时为空"),
    BIND_BANK_IS_EXITS(700016, "同一银行同一类型银行卡只允许绑定一张"),
    CREDIT_IS_APPLED(700017, "您已当前填写的信息和申请填写信息不一致"),
    BINDING_CARD_EXPIRES(700018, "您的卡片已失效"),
    PRE_LOAN_BANK_ERR(700019, "You still need to bind cards to activate your limit. "),

    // 贷款 授信申请记录不存在
    LOAN_APPLY_NOT_EXISTS(800001, "贷款申请记录不存在"),
    CREDIT_APPLY_NOT_EXIST(800001, "Credit application record does not exist"),
    LOAN_REFUND_PLAN_NOT_EXISTS(800002, "还款计划为空"),
    LOAN_NOT_ISSUE(800003, "贷款还未发放"),
    //    CREDIT_APPLY_REFUSED(800004, "很遗憾，授信审批被拒绝！"),
    CREDIT_APPLY_REFUSED(800004, "Regrettably, credit approval was refused"),
    //    LOAN_APPLY_IS_ALREADY_ON_THE_WAY(800005, "您好，您已经有一笔提现在途订单，请放款成功再申请"),
    LOAN_APPLY_IS_ALREADY_ON_THE_WAY(800005, "Hello, you have a cash withdrawal order in transit, please apply again after successful loan."),
    LOAN_APPLY_IS_ALREADY_ON_THE_WAY2(800015, "You already have a loan, please pay it off before applying for another loan."),
    //    CREDIT_LINE_AVAILABLE_QUOTA_INSUFFICIENT(800006, "您好，授信可用额度不足，暂不能申请"),
    CREDIT_LINE_AVAILABLE_QUOTA_INSUFFICIENT(800006, "Hello, your available limit is insufficient, so you cannot apply for loan temporarily."),
    //    INSUFFICIENT_ACCOUNT_BALANCE(800007, "支付账户额度不足，放款失败"),
    INSUFFICIENT_ACCOUNT_BALANCE(800007, "Insufficient available balance. Withdrawal failed."),
    //    ACCOUNT_NUMBER_NOT_EXISTS(800008, "银行账户信息不存在"),
    ACCOUNT_NUMBER_NOT_EXISTS(800008, "Bank account information does not exist"),
    //    ACCOUNT_NAME_NOT_EQUALS_BVN_NAME(800009, "银行账户姓名与BVN帐户姓名不一致"),
    ACCOUNT_NAME_NOT_EQUALS_REAL_NAME(800009, "The bank account name is inconsistent with the real name"),
    //    LOAN_FAILED_AFTER_REINITIATE_PAY(800010, "放款失败"),
    LOAN_FAILED_AFTER_REINITIATE_PAY(800010, "Lending failed."),
    //    LOAN_FAILED(800011, "放款失败"),
    LOAN_FAILED(800011, "Lending failed."),
    //    OTP_REQUEST(800012, "OTP 异常流程"),
    OTP_REQUEST(800012, "Abnormal process"),
    //    LOAN_PENDING(800013, "放款中，请稍后查询放款结果"),
    LOAN_PENDING(800013, "In loan, please check the loan result later"),
    //    MORE_THAN_PRODUCT_QUOTA(800014, "提现额度不得高于产品额度"),
    MORE_THAN_PRODUCT_QUOTA(800014, "The withdrawal limit shall not be higher than the product limit"),
    //    CONTRAC_GENERATE_ERR(800015, "合同生成错误"),
    CONTRAC_GENERATE_ERR(800015, "Loan contract generation error"),
    SERIAL_NO_DUPLICATE(800016, "Repeat application, Please re-enter the withdrawal page."),
    BEFORE_LOAN_NEED_BIND_CARD(800017, "Binding a card before loan"),
    //    LOWER_THAN_PRODUCT_MIN_QUOTA(800018, "提现额度不得低于产品最小提现额度"),
    LOWER_THAN_PRODUCT_MIN_QUOTA(800018, "The withdrawal limit shall not be lower than the minimum limit of the product"),
    //状态不在审批中
    LOAN_STATUS_IS_NOT_APPROVAL(800019, "loan status is not approval"),
    SERIAL_NOT_EXIST(8000221, "The Serial no does not exist"),
    FLAG_FIELD_MISSING(8000222, "Flag field missing"),
    FLAG_NOT_EXIST(8000223, "Flag not exist"),
    REACHED_UPPER_LIMIT(800021, "The application has reached the upper limit on the day, please re-loan the next day"),
    //提现风控拒绝N天惩罚期，7天内不能提现
    NOT_LOAN_WITHIN_7(800022, "Cannot withdraw cash within #freezeDay# days after rejection"),
    NOT_LOAN_BEFORE_REPAY_OVERDUE_LOAN(800023, "You have overdue loan, please repay the loan before cashing out, thank you!"),
    CUST_NO_LOAN(800024, "未找到客户的借据记录"),
    RULE_NOT_PASSED(800025, "未通过规则"),
    LOAN_IOU_NOT_NEED_TO_BE_REPAID(800026, "This loan IOU does not need to be repaid."),

    WITHDRAWAL_FAILED(800027, "Withdrawal failed, please try again later."),

    //  BVN不存在
    BVN_NOT_EXISTS(800030, "bvn does not exist"),
    //BVN Match失败
    BVN_MATCH_FAIL(800031, "bvn match fail"),
    // accountNumber与BVN帐户姓名不一致
    BVN_NOT_EQUALS_ACCOUNT_NUMBER(800032, "The bank BVN is inconsistent with the account number"),
    //BVN Match异常
    BVN_MATCH_EXCEPTION(800032, "bvn match exception"),
    BVN_ACCOUNT_IS_NULL(800033, "BVN or account number is null"),
    CREDIT_APPLY_IN_TRANSIT(800034, "Hello, you have a credit application in transit, please try again later."),
    LOAN_APPLY_IN_TRANSIT(800035, "Hello, you have a loan application in transit, please try again later."),
    SYSTEM_UNDER_MAINTENANCE_WITHDRAW_SUSPENDED(800036, "The system is under maintenance, withdrawals are suspended."),


    //借据未还清
    IOU_OUTSTANDING(800000, "You have an outstanding loan. Please make payment!"),
    //理由不能为空
    REASON_NOTNULL(800040, "Deletion reason cannot be blank"),
    REASON_TOOLONG(800041, "The reason is too long"),

    //    LOAN_VERIFY(800011, "查询异常"),
    LOAN_VERIFY(800042, "Verify exception"),


    // 其他
    INTERRUPT_LOOP(900001, "中断循环"),
    MONNIFY_INTERFACE_ERROR(900002, "Monnify service exception"),
    MONNIFY_INTERFACE_FALSE(900003, "Monnify service return false"),
    MONNIFY_RESERVED_IS_EXISTS(900004, "You can not reserve two accounts with the same reference"),
    MONNIFY_RESERVED_IS_NOT_EXISTS(900005, "Cannot find reserved account"),
    // We do not support virtual accounts from bank with code 50515.
    MONNIFY_RESERVED_DO_NOT_SUPPORT(900006, "We do not support virtual accounts for this bank"),
    //webhook  hash异常
    MONNIFY_TRANSACTION_WEBHOOK_ILLEGAL_REQUEST(900008, "monnify webhook illegal request"),
    //webhook  订单异常
    MONNIFY_TRANSACTION_WEBHOOK_STATUS_ERROR(900009, "monnify webhook order status error"),
    //意外终止 unexpected termination
    MONNIFY_UNEXPECTED_TERMINATION(900011, "monnify unexpected termination "),
    //意外错误，需要重新查询获取状态
    MONNIFY_UNEXPECTED_ERR_OCCURRED(900012, "unexpected error occurred"),
    //信息无效 放款失败
    MONNIFY_INVALID_ACCOUNT_DETAILS_SUPPLIED(900014, "Invalid account details supplied."),
    //资金计划余额不足
    INSUFFICIENT_FUNDING_PLAN_BALANCE(900013, "Insufficient Funding Plan Balance"),
    // 放款处理中，统一余额不足
    INSUFFICIENT_WALLET_BALANCE(900014, "Insufficient wallet balance"),
    WEBHOOK_EVENT_TYPE_UNSUPPORTED(900010, "Unsupported webhook event"),

    MONNIFY_TRANSTOUS_NO_VA_ACCOUNT(900011, "No account for repayment, please contact customer service"),

    //提额-未获得额度
    RAISE_LIMIT_NOT_LIST(220001, "You have not get limit"),
    //提额-不符合提额条件
    RAISE_LIMIT_NOT_MEET(220002, "Sorry, You do not meet the requirement to increase the limit"),
    //提额-逾期
    RAISE_LIMIT_HAVE_OVERDUE(220003, "Sorry, You have an overdue loan, please repay and try again later"),
    //提额-信息补充失败
    RAISE_LIMIT_REPLENISH_FAIL(220004, "Sorry, your application has been rejected"),
    //提额-已提额成功
    RAISE_LIMIT_SUCCEED(220005, "Your loan limit has been increased"),
    //提额-审批中
    RAISE_LIMIT_ADDITIONAL(220006, "Additional information under review…"),

    RAISE_LIMIT_PHONE_REPEAT1(220007, "The contact phone number cannot be the same as the registered phone number, BVN phone number and direct contact phone number."),
    RAISE_LIMIT_PHONE_REPEAT2(220008, "The contact phone number cannot be the same as the registered phone number, BVN phone number and direct contact phone number. Please return to the previous page to edit and submit again；"),


    MQ_SEND_FAILED(250001, "MQ send failed"),


    /**
     * 奖励活动管理
     */
    AWARD_CONFIG_IS_EXIST(290001, "奖励任务已存在"),
    AWARD_CONFIG_USING(290002, "ID[#ids#]奖励配置被使用中"),
    AWARD_ACT_IS_NOT_EXIST(290003, "ID[#id#]活动不存在"),
    AWARD_ACT_CONFIG_IS_NULL(290004, "活动奖励任务不能为空"),
    AWARD_DISTRIBUTION_RATIO_REL_ACTIVITY(290005, "分销配置ID[#ids#]已关联活动无法删除"),
    ;

    // 延期包相关


    // 构造方法
    private RspEnmu(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    // 普通方法
    public static String getMessage(String code) {
        for (RspEnmu c : RspEnmu.values()) {
            if (c.getCode().equals(code)) {
                return c.getMessage();
            }
        }
        return null;
    }

    private Integer code;

    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
